//
//  LeftTableViewCell.m
//  YouWen
//
//  Created by 刘永和 on 15/3/7.
//  Copyright (c) 2015年 刘永和. All rights reserved.
//

#import "LeftTableViewCell.h"

@implementation LeftTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubView];
    }
    return self;
}
- (void)createSubView
{
    self.titleImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 170, 167)];
    //与用户交互开关
    self.titleImageView.userInteractionEnabled = YES;
    [self.contentView addSubview:self.titleImageView];
    
    
    self.centerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(170, 0, 190, 167)];
    self.centerImageView.userInteractionEnabled = YES;
    [self.contentView addSubview:self.centerImageView];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(190, 50, 140, 70)];
    self.titleLabel.text = @"标题";
    self.titleLabel.font = [UIFont systemFontOfSize:27];
    self.titleLabel.textColor = [UIColor whiteColor];
    self.titleLabel.userInteractionEnabled= YES;
    [self.contentView addSubview:self.titleLabel];
    
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
